/*----------------------------------------------------------------------------------------
*
*  Copyright 2019, Gao Hai Hui, <fromzeropoint@126.com>.  All rights reserved.
*  https://gitee.com/helloworldghh/xos_http.git
*  Use of this source code is governed by a MIT license
*  that can be found in the License file.
*
----------------------------------------------------------------------------------------*/
#ifndef __MSG_FAST_HTTP_PROC_H__
#define __MSG_FAST_HTTP_PROC_H__

namespace xos_http
{

    class http_proc
    {
    public:
        http_proc();
        ~http_proc();

    protected:
        int collect_filters( module::LIST & m_list, path * pPath );

    public:
        int helper_download( response * pResponse );
        int helper_404( response * pResponse );
        int filter( task * pTask, const std::string & filter );
        int helper_quit_test( xos_box::i_msg *& pMsg );
        int free_filters( module::LIST & m_list );
        int proc( xos_box::i_msg *& pMsg );

    };

} // xos_http

#endif // __MSG_FAST_HTTP_PROC_H__
